package com.contract.management.web;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration 
public class WebConfig extends WebMvcConfigurerAdapter {

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new SecurityInterceptor()).
			addPathPatterns("/**").
			excludePathPatterns("/login", "/pic/*", "/download/*",
					"/poserver.zz", "/pageoffice.js", "/pobstyle.css", 
					"/sealsetup.exe", "/posetup.exe", "/jquery.min.js",
					"/adminseal.zz", "/sealimage.zz", "/loginseal.zz");
	}
}